package com.xinlang.excel;


/**
 * ����ָ�����������ݽṹ
 */
public class Pair<ORDER_BY extends Comparable<ORDER_BY>, KEY> implements Comparable<Pair<ORDER_BY, KEY>> {

	ORDER_BY orderBy; // �����key

	KEY rowKey; // ��Ӧ�е�key

	public Pair(ORDER_BY orderBy, KEY rowKey) {
		this.orderBy = orderBy;
		this.rowKey = rowKey;
	}

	public ORDER_BY getOrderBy() {
		return orderBy;
	}

	public KEY getRowKey() {
		return rowKey;
	}

	@Override
	public int compareTo(Pair<ORDER_BY, KEY> another) {
		return orderBy.compareTo(another.orderBy);
	}

}
